/*
 * EmployeeBO.java
 *
 * Created on February 13, 2007
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package finalintex2web;
import java.util.*;

/**
 * Business object for employees
 * @author craig marshall
 */
public class EmployeeBO {
    
    private String id = null, firstname, lastname;
    private boolean indb = false , dirty = false;
   
    
    
    
    /** Creates a new instance of EmployeeBO */
    EmployeeBO(String id) {
        this.setId(id);
        
    }

    /**
     * 
     * @return 
     */
    public String getId() {
        return id;
    }

    /**
     * 
     * @param id 
     */
    public void setId(String id) {
        this.id = id;
        this.setDirty(true);
    }

    /**
     * 
     * @return 
     */
    public String getFirstname() {
        return firstname;
    }

    /**
     * 
     * @param firstname 
     */
    public void setFirstname(String firstname) {
        this.firstname = firstname;
        this.setDirty(true);
    }

    /**
     * 
     * @return 
     */
    public String getLastname() {
        return lastname;
    }

    /**
     * 
     * @param lastname 
     */
    public void setLastname(String lastname) {
        this.lastname = lastname;
        this.setDirty(true);
    }

    /**
     * 
     * @return 
     */
    public boolean isIndb() {
        return indb;
    }

    /**
     * 
     * @param indb 
     */
    public void setIndb(boolean indb) {
        this.indb = indb;
    }

    /**
     * 
     * @return 
     */
    public boolean isDirty() {
        return dirty;
    }

    /**
     * 
     * @param dirty 
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }
}